Original English meaning: tape archive
Chinese meaning: tape ArchivingNoteSolution: A file packaging tool in Unix/Linux is used to pack many files together to form an archive file for archiving. It was originally designed for tape backup and can now
Tar, 7z (7zip) compression/Decompression command, 7z7zip
This document describes how to use tar and 7z commands.Tar command
In Linux, the most commonly used compression/Decompression command is the tar command.
The tar command is used to package the
I. Mounting storage mediaThe Linux file system incorporates all the disks into a single virtual directory, which needs to be placed in the virtual directory before the new storage media is used, which is called mount (mounting) 1.1 Mount CommandThe
This package is a source program, not compiled, need to be compiled to install1. Open a shell, that is, the terminal2. Use the CD command to enter the directory where the source code compression package is located3. Unzip the file according to the
First, installation1. Open a shell, that is, the terminal2. Use the CD command to enter the directory where the source code compression package is located3. Unzip the file according to the package type (* represents the package name)TAR-ZXVF
This article mainly introduces the example of using tarfile to compress and decompress the tar archive file in Python. This article provides examples of decompressing and compressing the code directly. if you need it, refer to the example below.
The
Article Title: use tar to back up linux systems. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
"What should
Decompress the tar package for basic Linux knowledge
(1) decompress the tar package with the suffix bz2:Bzip2-D gcc-4.1.0.tar.bz2--- After decompression, run the tar package decompression command.(2)
Python's Tarfile module makes it easy to read tar archive files, and Cow B is able to handle compressed archive files using gzip and bz2 tar.gz and tar.bz2.
Corresponding to the Tarfile is the ZipFile module, ZipFile is the processing of zip
This example describes how Python3 implements the archive of all files and subdirectories in the file tree to a tar compressed file. Share to everyone for your reference. The implementation method is as follows:
# Archive all files and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.